package com.example.business.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.business.dao.entity.Article;
import com.example.oauthresourceserver.business.dao.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleMapper extends BaseMapper<Article> {
    // 自定义方法：查询最新的n篇文章
    List<Article> selectLatestArticles(@Param("limit") int limit);
}